package com.sl.au.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.scadaModelPointRelation;

@Transactional(readOnly = true)
public interface scadaModelPointRelatioRepository extends JpaRepository<scadaModelPointRelation, String> {

	@Query(" select a from scadaModelPointRelation a where a.pointId in (?1)  ")
	List<scadaModelPointRelation> findByPointIds(String pointIds);

	@Query(" select a from scadaModelPointRelation a where a.modelId in (?1)  ")
	List<scadaModelPointRelation> findByModelIds(String modelIds);

}
